<!DOCTYPE html>
<html lang="en">
<head>
    <title>Matrix Admin</title>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="<?php echo base_url()?>style/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="<?php echo base_url()?>style/css/bootstrap-responsive.min.css"/>
    <link rel="stylesheet" href="<?php echo base_url()?>/style/css/fullcalendar.css"/>
    <link rel="stylesheet" href="<?php echo base_url()?>style/css/matrix-style.css"/>
    <link rel="stylesheet" href="<?php echo base_url()?>/style/css/matrix-media.css"/>
    <link href="<?php echo base_url()?>style/font-awesome/css/font-awesome.css" rel="stylesheet"/>
    <link rel="stylesheet" href="<?php echo base_url()?>style/css/jquery.gritter.css"/>
    <script src="<?php echo base_url()?>style/js/jquery.min.js"></script>
    <script src="<?php echo base_url()?>style/js/bootstrap.min.js"></script>
    <script src="<?php echo base_url()?>style/js/matrix.js"></script>

    <script src="<?php echo base_url()?>style/js/jquery.dataTables.min.js"></script>
    <script src="<?php echo base_url()?>style/js/select2.min.js"></script>
    <script src="<?php echo base_url()?>style/js/matrix.tables.js"></script>
    <script src="<?php echo base_url()?>style/js/common.js"></script>
</head>
<body>
<div id="header">
    <h1><a href="dashboard.html">Matrix Admin</a></h1>
</div>
<div id="user-nav" class="navbar navbar-inverse">
    <ul class="nav">
        <li class="dropdown" id="profile-messages"><a title="" href="#" data-toggle="dropdown"
                                                      data-target="#profile-messages" class="dropdown-toggle"><i
                class="icon icon-user"></i> <span class="text">欢迎&nbsp;<?php echo($data[1]['adminName'])?></span><b
                class="caret"></b></a>
            <ul class="dropdown-menu">
                <li><a href="#"><i class="icon-user"></i> 我的信息</a></li>
                <li class="divider"></li>
                <li><a href="#"><i class="icon-check"></i> 我的任务</a></li>
                <li class="divider"></li>
                <li><a href="<?php echo site_url('login/logout') ?>"><i class="icon-key"></i> 退出</a></li>
            </ul>
        </li>
        <li class="dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages"
                                                   class="dropdown-toggle"><i class="icon icon-envelope"></i> <span
                class="text">Messages</span> <span class="label label-important">5</span> <b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li><a class="sAdd" title="" href="#"><i class="icon-plus"></i> new message</a></li>
                <li class="divider"></li>
                <li><a class="sInbox" title="" href="#"><i class="icon-envelope"></i> inbox</a></li>
                <li class="divider"></li>
                <li><a class="sOutbox" title="" href="#"><i class="icon-arrow-up"></i> outbox</a></li>
                <li class="divider"></li>
                <li><a class="sTrash" title="" href="#"><i class="icon-trash"></i> trash</a></li>
            </ul>
        </li>
        <li class=""><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">设置</span></a></li>
        <li class=""><a title="" href="<?php echo site_url('login/logout') ?>"><i class="icon icon-share-alt"></i> <span
                class="text">退出</span></a>
        </li>
    </ul>
</div>

<div id="search">
    <input type="text" placeholder="Search here..."/>
    <button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-white"></i></button>

</div>

<div id="sidebar"><a href="<?php echo site_url('login/playerlist')?>" class="visible-phone"><i
        class="icon icon-home"></i> 首页</a>
    <ul>
        <li class="active"><a href="<?php echo site_url('login/playerlist')?>"><i class="icon icon-home"></i>
            <span>首页</span></a></li>
        <?php if(in_array(1,$data[1]['page'])):?>
        <!--<li><a href="#"><i class="icon icon-signal"></i> <span>商品管理</span></a></li>-->
        <?php endif;?>
        <?php if(in_array(2,$data[1]['page'])):?>
        <li class="submenu"><a href="#"><i class="icon icon-inbox"></i> <span>用户管理</span></a>
            <ul>
                <?php if(in_array(8,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('user/playerlist')?>">查看全部玩家信息</a></li>
                <?php endif;?>
                <?php if(in_array(9,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('user/agentlist')?>">代理用户信息</a></li>
                <?php endif;?>
                <?php if(in_array(10,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('user/agentLevelList')?>">代理等级信息</a></li>
                <?php endif;?>
            </ul>
        </li>
        <?php endif;?>
        <?php if(in_array(3,$data[1]['page'])):?>
        <li class="submenu"><a href="#"><i class="icon icon-th"></i> <span>财务管理</span></a>
            <ul>
                <?php if(in_array(11,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('finance/financeInfo')?>">售卡总账信息</a></li>
                <?php endif;?>
                <?php if(in_array(12,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('finance/interestBack')?>">代理待结算返利</a></li>
                <?php endif;?>
                <?php if(in_array(13,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('finance/interestBackHistory')?>">代理返利列表</a></li>
                <?php endif;?>
                <?php if(in_array(14,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('finance/rebateList')?>">返利等级信息</a></li>
                <?php endif;?>
            </ul>
        </li>
        <?php endif;?>
        <?php if(in_array(4,$data[1]['page'])):?>
        <li class="submenu"><a href="#"><i class="icon icon-fullscreen"></i> <span>订单管理</span></a>
            <ul>
                <?php if(in_array(15,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('order/orderList')?>">订单列表</a></li>
                <?php endif;?>
            </ul>
        </li>
        <?php endif;?>
        <?php if(in_array(5,$data[1]['page'])):?>
        <li class="submenu"><a href="#"><i class="icon icon-th-list"></i> <span>运营管理</span> <span
                class="label label-important">3</span></a>
            <ul>
                <?php if(in_array(16,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('operate/playerOnlineList')?>">在线玩家</a></li>
                <?php endif;?>
                <?php if(in_array(17,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('operate/userBlackList')?>">玩家黑名单</a></li>
                <?php endif;?>
                <?php if(in_array(18,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('operate/gameList')?>">游戏数据监测</a></li>
                <?php endif;?>
                <?php if(in_array(19,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('operate/agentBlackList')?>">代理黑名单</a></li>
                <?php endif;?>
                <?php if(in_array(20,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('operate/agentInfo')?>">代理数据监测</a></li>
                <?php endif;?>
            </ul>
        </li>
        <?php endif;?>
        <?php if(in_array(6,$data[1]['page'])):?>
        <li class="submenu"><a href="#"><i class="icon icon-tint"></i> <span>客服工作台</span></a>
            <ul>
                <?php if(in_array(21,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('customService/CardByCustom/user/in')?>">玩家代充值</a></li>
                <?php endif;?>
                <?php if(in_array(22,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('customService/CardByCustom/user/out')?>">玩家退卡</a></li>
                <?php endif;?>
                <?php if(in_array(23,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('customService/CardByCustom/agent/in')?>">代理代充值</a></li>
                <?php endif;?>
                <?php if(in_array(24,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('customService/CardByCustom/agent/out')?>">代理退卡</a></li>
                <?php endif;?>
                <?php if(in_array(25,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('customService/customCardList')?>">代充值/退卡日志</a></li>
                <?php endif;?>
                <?php if(in_array(26,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('customService/customRegList')?>">代注册操作日志</a></li>
                <?php endif;?>
                <?php if(in_array(27,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('customService/customResetList')?>">代理重置密码操作日志</a></li>
                <?php endif;?>
            </ul>
        </li>
        <?php endif;?>
        <?php if(in_array(7,$data[1]['page'])):?>
        <li class="submenu"><a href="interface.html"><i class="icon icon-pencil"></i> <span>权限管理</span></a>
            <ul>
                <?php if(in_array(28,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('auth/levellist') ?>">权限列表</a></li>
                <?php endif;?>
                <?php if(in_array(29,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('auth/pagelist') ?>">权限等级配置</a></li>
                <?php endif;?>
                <?php if(in_array(30,$data[1]['pagelist'])):?>
                <li><a href="<?php echo site_url('auth/userlist') ?>">账户列表</a></li>
                <?php endif;?>
            </ul>
        </li>
        <?php endif;?>
    </ul>
</div>